package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 司机认证VO
 *
 * @author houjianhui
 */
public class DriverCertInfoVo {

    private Long id;

    private Long userId;

    private Integer status;

    private String statusText;

    @NotBlank(message = "身份证号码不能为空")
    @Pattern(regexp = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$|^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X|x)$", message = "身份证号不合法")
    private String idno;

    @NotBlank(message = "身份证正面照片不能为空")
    private String idpic1;

    @NotBlank(message = "身份证反面照片不能为空")
    private String idpic2;

    @NotBlank(message = "姓名不能为空")
    @Length(max = 10, message = "姓名长度不能超出10位")
    private String realName;

    private Date createTime;

    private Date updateTime;

    private String idpicUrl1;

    private String idpicUrl2;

    private String showIdno;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getIdno() {
        return idno;
    }

    public void setIdno(String idno) {
        this.idno = idno;
    }

    public String getIdpic1() {
        return idpic1;
    }

    public void setIdpic1(String idpic1) {
        this.idpic1 = idpic1;
    }

    public String getIdpic2() {
        return idpic2;
    }

    public void setIdpic2(String idpic2) {
        this.idpic2 = idpic2;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdpicUrl1() {
        return idpicUrl1;
    }

    public void setIdpicUrl1(String idpicUrl1) {
        this.idpicUrl1 = idpicUrl1;
    }

    public String getIdpicUrl2() {
        return idpicUrl2;
    }

    public void setIdpicUrl2(String idpicUrl2) {
        this.idpicUrl2 = idpicUrl2;
    }

    public String getShowIdno() {
        return showIdno;
    }

    public void setShowIdno(String showIdno) {
        this.showIdno = showIdno;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "DriverCertInfoVo [id=" + id + ", userId=" + userId + ", status=" + status + ", idno=" + idno
                + ", idpic1=" + idpic1 + ", idpic2=" + idpic2 + ", realName=" + realName + ", createTime=" + createTime
                + ", updateTime=" + updateTime + ", idpicUrl1=" + idpicUrl1 + ", idpicUrl2=" + idpicUrl2 + "]";
    }

    public String getStatusText() {
        return statusText;
    }

    public void setStatusText(String statusText) {
        this.statusText = statusText;
    }
}
